package com.mallkit.core.commands
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.mallkit.core.business.MallkitMainServiceDelegate;
	
	import mx.rpc.IResponder;
	
	public class TestCommand implements ICommand, IResponder
	{
		public function execute(event : CairngormEvent):void
		{
			var del:MallkitMainServiceDelegate = new MallkitMainServiceDelegate(this);
			del.test();
		}
		
		/**
		 *  This method is called by a service when the return value
		 *  has been received. 
		 *  While <code>data</code> is typed as Object, it is often
		 *  (but not always) an mx.rpc.events.ResultEvent.
		 */
		public function result(data:Object):void
		{
			
		}
		
		/**
		 *  This method is called by a service when an error has been received.
		 *  While <code>info</code> is typed as Object it is often
		 *  (but not always) an mx.rpc.events.FaultEvent.
		 */
		public function fault(info:Object):void
		{
			
		}
	}
}